import org.eclipse.swt.widgets.Label;


public abstract class MapObject {

	double x;
	double y;
	double speed = 0;
	int angle = 0;
	
	//GUI
	String avatarImageFilename = null;
	Label avatar = null;
	
	public void setPosition(int x, int y){
		this.x = x;
		this.y = y;
		drawAvatar();
	}
	
	public int getX(){
		return (int) x;
	}
	
	public int getY(){
		return (int) y;
	}
	
	abstract public void drawAvatar();
	abstract public void play();	
	
	public void hideAvatar(){
		if(avatar != null){
			avatar.dispose();
		}
	}
}
